﻿@model BuySoftwareOnline.Domain.Product

<table width="100%">
  <tr>
    <td colspan="3" valign="top" width="100%"><img src="../../Content/images/software.gif" />&nbsp;&nbsp;<b style="font-size:12px;color:#06F">@Model.ProductName</b> <div style="float:right">
        <img src="../../Content/images/new21.gif"  /><b style="font-size:14px">Giá :</b> <span style=" font-weight:bolder;font-size:18px; color:#F00;">@Model.UnitPrice.Value.ToString("c")</span> </div>
    <hr />
    </td>
  </tr>
  <tr>
    <td width="23%"><img src="@Url.Action("GetImage", "Product", new { Model.ProductID }) " width="133" height="100" /></td>
    <td width="45%" style="font-size:12px" valign="top">
    @Model.Description
    <br />
    <br />
    <img src="../../Content/images/read-more-button.jpg" />
    </td>
    <td style="font-size:12px" valign="top">
    <b>Kích thước :</b> @Model.Size Mb
    <br />
    <b>Nền chạy :</b> @Model.PlatForm
    <br />
    <b>Chủng loại :</b> <span style=" color:Orange">@Model.Category.CategoryName</span>
    <br />
    <b>Ngày cập nhật :</b> @Model.CreateTime.Value.ToShortDateString()
    <p>
    <p>
    <div style=" float:inherit"><b style="font-size:16px">Trong kho :</b> <input type="text" value="@Model.Total" size="3" readonly="readonly" /> </div>
    </td>
  </tr>
  <tr>
  	<td width="133"></td>
    <td colspan="2" valign="top">
    <hr />
    @foreach(var c in new BuySoftwareOnline.Domain.Concrete.ProductBuildRepository().ProductBuilds.Where(t => t.ProductID == Model.ProductID).Select(t => t))
    {
        <input type="radio" id="productbuild" name="productbuild" value="@c.VersionID" />@c.Version.VersionType
    }
    <div style="float:right">
    <img src="../../Content/images/button-add-to-cart.png" width="86" height="20" />
    </div>
    </td>
  </tr>
</table>
